extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]觉醒宝珠"
	info = "若佩戴者拥有<亡语>技能，则每8秒触发其亡语效果\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.maxHp = 500
	att.def = 30
	att.cd = 0.2
	
func _connect():
	._connect()
	sys.main.connect("onBattleEnd",self,"end")

var num = 0
func _upS():
	._upS()
	if masCha == null or not utils.inBattle(masCha):return
	num += 1
	if num >= 8:
		if masCha.has_method("deathWord"):
			masCha.deathWord()
		num = 0

func end():
	num = 0

func upgrade():
	name = "[color=#FFFF00][史诗]觉醒宝珠"
	info = "若佩戴者拥有<亡语>技能，则每8秒触发其亡语效果"
	att.maxHp = 1000
	att.def = 60
	att.cd = 0.4


